package com.designmodel.mediatormodel;

/**
 * Created by
 * 具体的中介 必须知道所有的需要处理的对象
 * @author touni
 * @date 2019/4/2
 * @time 12:48
 */
public class ContreteMediator extends Mediator {


    public ContreteMediator(MediatorUser userA, MediatorUser userB) {
        super(userA, userB);
    }

    public void receiveA() {
        userA.communication(this);


    }

    public void sendB() {
        userB.communication(this);
    }
}
